package com.xia.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book implements Serializable {

    private Integer bookId;
    private String name;
    private String author;
    private String publish;
    @JsonProperty("ISBN") // Jackson注解，替代Fastjson的@JSONField
    private String ISBN;
    private String introduction;
    private String language;
    private double price;
    private String pubDate;

    private Integer cid;
    private Category category;
    private Integer stock;
}